package com.yxuan.springboot.service.impl;

import com.yxuan.springboot.mapper.ControlLineMapper;
import com.yxuan.springboot.model.ControLineProvince;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.yxuan.springboot.model.ControlLine;
import com.yxuan.springboot.service.ControlLineService;

import java.util.List;

/**
 * 
 * @author zchao
 *    ControlLine业务层实现类
 * @date 2023-05-21 13:22:40
 */
@Service
@Transactional
public class ControlLineServiceImpl extends BaseServiceImpl<ControlLine> implements ControlLineService {

    @Autowired
    private ControlLineMapper controlLineMapper;

    @Override
    public List<ControLineProvince> fingProvinceByGroup() {
        return controlLineMapper.getProvinceByGroup();
    }

    @Override
    public List<ControlLine> findYearByProvince(String province) {
        return controlLineMapper.getYearByProvince(province);
    }
}
